package com.syni.mdd.sjb.common.datatreaure.entity.vo.rp.dataBankBusiness;

import com.alibaba.fastjson.JSON;
import com.syni.mdd.sjb.common.component.utils.feign.dto.mddAll.apiCoupon.SearchCouponDetailDto;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class GetMddGroupBuyCouponDetailRpVo {

    private GetMddGroupBuyCouponDetailRpGroupBuy groupBuyData;

    @Data
    public static class GetMddGroupBuyCouponDetailRpGroupBuy{
        private Integer showTemplateId = 1;
        private Integer id;
        private SearchCouponDetailDto.BusinessData businessData;

        private List<String> groupPhotos = new ArrayList<>();

        public void setGroupPhotos(List<String> groupPhotos) {
            this.groupPhotos = groupPhotos;
            groupPhotosString = JSON.toJSONString(groupPhotos);
        }

        private String groupPhotosString = JSON.toJSONString(new ArrayList<>());

        private String useNumber;

        private String groupName;

        private Double groupValue;

        private Double groupPrice;

        private Integer useWay = 1;

        private String useTime;

        private Integer noUseDate;

        private Integer isRefundAnyTime;

        private Integer isOverdueRefund;

        private Integer isFreePackage;

        private Integer isUseTheRoom;

        private Integer isEnjoyOtherBen;

        private Integer needAppointment;

        private Integer limitBuyNum;

        private Integer limitOnceBuyNum;

        private Integer limitOnceUse;

        private String ortherServices;

        private Date expireTime;


        private Integer limitSellNum;
        private Date onlineTime;

        private Integer isUseOne ;

        private Integer isLadyUse;


        private Integer limitSingleExperience = 0;

        List<SearchCouponDetailDto.GroupContent> groupContent = new ArrayList<>();


        private Integer leastBuyNum;


        private String textContent;

        private List<String> groupDetails = new ArrayList<>();
    }
}
